﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Findy.XsltDb
{
    [ValidationProperty("Value")]
    public partial class DesktopModules_XsltDb_dtp : System.Web.UI.UserControl, IDTP
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lnkCalendar.HRef = "javascript:" + DotNetNuke.Common.Utilities.Calendar.InvokePopupCal(txtDate);
        }

        //public string Value
        //{
        //    get { return ""; }
        //    set { }
        //}

        public string Value
        {
            get { return txtDate.Text; }
            set { txtDate.Text = value; }
        }

        public bool AutoPostBack
        {
            get { return txtDate.AutoPostBack; }
            set { txtDate.AutoPostBack = value; }
        }
    }
}